﻿/******************************************************************************
 *  作者：       Maxzhang1985
 *  创建时间：   2012/5/2 14:14:40
 *
 *
 ******************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using ExtendPropertyLib;
using ExORMDesginer.Plugin.Template;

namespace ExORMDesginer.Plugin
{
    /// <summary>
    /// 向导基类
    /// </summary>
    public abstract class WizardBase : BusinessInfoBase<WizardBase>, IWizard
    {
        /// <summary>
        /// 单表对象
        /// </summary>
        [XmlIgnore]
        [field:NonSerialized]
        public DbEntity Model
        {
            set;
            get;
        }

        /// <summary>
        /// 模板信息
        /// </summary>
        public TemplateInfo TemplateInfo { set; get; }

        /// <summary>
        /// 过程处理
        /// </summary>
        /// <returns></returns>
        public virtual string Process()
        {
            return null;
        }
        /// <summary>
        /// 主界面HOST
        /// </summary>
        [XmlIgnore]
        [field: NonSerialized]
        public IHost Host
        {
            set;
            get;
        }
        /// <summary>
        /// 向导插件名称
        /// </summary>
        public virtual string Name
        {
            get { return null; }
        }
    }
}
